#include <fstream>

long long gcd(long long a, long long b, long long & p, long long & q)
{
   if (b == 0) 
   {
      p = 1;
      q = 0;
      return a;
   }
   long long p1, q1;
   long long d = gcd(b, a % b, p1, q1);
   p = q1;
   q = p1 - (a / b) * q1;
   return d;
}

int main()
{
   std::ifstream fin("in.txt");
   std::ofstream fout("out.txt");
               
   long long a, b, c;
   long long x, y;
   
   while (fin >> a >> b >> c)
   {
      long long g = gcd(a, b, x, y);
      if (g == 0)
      {
         if (c == 0)
            fout << "1 1" << '\n';
         else
            fout << "<none>" << '\n';
         continue;
      }

      if (c % g == 0)
         fout << x * c / g << " " << y * c / g << '\n';
      else
         fout << "<none>" << '\n';   
   }

   fin.close();
   fout.close();
   return 0;
}
